update parent record when child is updated